home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 1 / Eagles_Nest_Mac_Collection_Disc_1.TOAST / Special Hardware / CacheCont121 / CacheDoc < prev   
Text File  |  1989-09-20  |  5KB  |  52 lines

  1. Cache Control v 1.2.1
  2. ©1989 Jim Hamilton
  3.  
  4. Cache Control is shareware!  If you like it and use it, please send $10.00 to:
  5.  
  6.         Jim Hamilton
  7.         2914 Aftonshire Way, #13102
  8.         Austin, TX 78748
  9.  
  10. For a copy of the latest version, guaranteed free of any illness, send either $12.50, or $10.00 plus a disk plus a stamped, self-addressed envelope.  (it costs me about $2.50 to send a disk of my own--no profit here.)
  11.  
  12. Cache Control will allow you to set up the Instruction Cache on the MC68020, and both the Instruction and Data Caches on the MC68030.  In particular, it allows you to turn the cache OFF, should you encounter a program which does not like having the cache on.  Your selections remain valid until you change them (which could be over several startup/shutdown cycles).
  13.  
  14. To install Cache Control, simply drag it to your System Folder, and open the Control Panel desk accessory.  Click on the check boxes for the caches, and you've done it!
  15.  
  16. In  addition, Cache Control makes some patches to the system to do two things:  First, it finds out what processor is running the Mac, instead of taking the system's word for it; this is useful if you have an accelerator card with a different processor from the one your Mac comes with.  For instance, my Macintosh SE has a 68030 (and a 68000, but that mostly sleeps).  CacheControl lets the system and applications know that it's there. 
  17.  
  18. The second patch fixes a small but annoying bug in Microsoft Excel 1.5 (Bill Gates strikes again!).  Excel was one of the first programs to send instructions directly to the 68881 floating-point coprocessor in the Mac II.  To see if it can do this on a particular machine, it asks the system if an FPCP is installed, but ONLY IF THE MAIN PROCESSOR IS A 68020 (it should really ask if the processor is a 68020 or later).  With the “Patch Excel” option checked, the SysEnvirons trap (which applications call to determine the features of the machine) will check to see if the application’s “signature” is ‘XCEL’ (for MS Excel).  If so, and if the processor is a 68030 or later, it tells the program that it’s a 68020.  This may seem like a non-kosher thing to do, but it works, and it doesn’t seem to affect any other programs.
  19.  
  20. Version 1.2 adds an option to check processor performance empirically.  This is done by testing how many times a loop can be executed in a given amount of real time.  The Macintosh operating system keeps a variable called “TimeDBRA” which describes how many times the 68000 family’s DBcc instruction can execute in one millisecond.  This value is then used to calculate timing loops for a number of applications, such as network access and sound generation.  For technical minded people, this is done by executing the following code:
  21.                MOVE.W     #4,CCR
  22. LOOP:   DBNE          D1,LOOP
  23.  
  24. Moving 4 into the condition code register sets the Z flag, so that the DBNE instruction will loop.  A Time Manager task clears this flag after 16 milliseconds, and the loop is exited.  The loop counter is checked to see how many times the loop executed, and this value is divided by 16 to obtain the calculated TimeDBRA.
  25.  
  26. Cache Control will work on any Macintosh computer with an MC68020 or MC68030 processor.  To date, these include the Macintosh II, Macintosh IIx, Macintosh IIcx, Macintosh SE/30, and Macs with most accelerator cards.  On other machines, it will simply refuse to run; i.e. it will not show up in the Control Panel.
  27.  
  28. LEGAL STUFF:
  29.  
  30. No warranty, expressed or implied, is granted for the use of this software.  Any liability arising out of its use will be limited to shareware fees paid by the user.
  31.  
  32. Cache Control may be freely distributed, as long as no charge is made for the distribution.  This means that it may be placed on bulletin boards which do not charge for specific downloads (a membership fee for the entire bulletin board is OK), on national services such as CompuServe, GEnie, Delphi, etc.  Cache Control may NOT be sold or included for sale on the so-called “public domain” disks sold by EduComp, BudgetBytes, and others without the author’s express written permission.  I am not unreasonable; if you want to include Cache Control on such a disk, let me know and we’ll try to work something out.
  33.  
  34. REVISION HISTORY
  35.  
  36. Version 1.0
  37. Initial release.
  38.  
  39. Version 1.1
  40. Add extra check for processor type and Microsoft Excel patch.
  41.  
  42. Version 1.1.1
  43. Fixes a bug which showed only on 68000 or 68010 systems.
  44.  
  45. Version 1.2  (THE VERSION FROM HELL!!!!!)
  46. Added option to check processor performance empirically, and modify TimeDBRA.  Unfortunately, a bad assumption by the programmer (that’s me) resulted in a program which would only run on accelerated (and unaccelerated, but that’s not important) Mac Plusses and SE’s.
  47.  
  48. Version 1.2.1
  49. Minor (in degree, major in effect) fix for processor timing.  This should take care of things.
  50.  
  51. Seemingly, But Not Really, Off The Subject Dept.:
  52. I would like to publicly thank the hundred or so people who have paid shareware fees for some of my other products, especially the Control Panel document ApFont.  Your support has made this product possible.